const stores = require("../Dao/storeDao");
//获取数据
const get = async (listQuery) => await stores.get(listQuery)

// 创建数据
const create = async (data) => await stores.create(data);

// 更新数据
const update = async (data) => await stores.update(data);

// 删除数据
const remove = async (_id) => await stores.remove(_id);

//服务
// 创建数据
const createServe = async (data) => await stores.createServe(data);

//获取数据
const getServe = async (listQuery) => await stores.getServe(listQuery)

// 更新数据
const updateServe = async (data) => await stores.updateServe(data);

// 删除数据
const removeServe = async (_id) => await stores.removeServe(_id);

module.exports = {
    get,
    create,
    update,
    remove,
    createServe,
    getServe,
    updateServe,
    removeServe
}